<template>
  <div class="index">产品列表</div>
</template>

<script>
// @ is an alias to /src
export default {
  name: "Cart",
  data() {
    return {
      filter: {
        page: 1, //第一页
        limit: 8, //每页显示多少条
        keyword: "", //关键字
        sid: 31, //分类ID
        news: 0, //是否是新品
        priceOrder: "asc", // 价格排序  asc 升序  desc 降序
        salesOrder: "asc", // 销量  asc 升序  desc 降序
      },
    };
  },
  created() {},
  components: {},
  methods: {
    queryProduct() {
      this.axios.get("api/products", {
        params: this.filter,
      });
    },
  },
};
</script>
<style scoped lang="less">
</style>

